package com.yunyike.service.impl;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yunyike.mapper.SkuMapper;
import com.yunyike.model.Sku;
import com.yunyike.service.SkuService;

@Service("skuServiceImpl")
public class SkuServiceImpl implements SkuService{

	private Logger log = LoggerFactory.getLogger(SkuServiceImpl.class);
	
	@Autowired
	private  SkuMapper skuMapper;

	
	public int deleteByPrimaryKey(String skuId) {
		return skuMapper.deleteByPrimaryKey(skuId);
	}

	
	public int insert(Sku record) {
		return skuMapper.insert(record);
	}

	
	public int insertSelective(Sku record) {
		return skuMapper.insertSelective(record);
	}

	
	public Sku selectByPrimaryKey(String skuId) {
		return skuMapper.selectByPrimaryKey(skuId);
	}

	
	public int updateByPrimaryKeySelective(Sku record) {
		return skuMapper.updateByPrimaryKeySelective(record);
	}

	
	public int updateByPrimaryKey(Sku record) {
		return skuMapper.updateByPrimaryKey(record);
	}

}
